package com.tzinfo.tzt.util;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;

import com.nostra13.universalimageloader.core.ImageLoader;
import com.tzinfo.tzt.fragment.Cars4smodeFragmetImage0;

import java.util.List;

/**
 * Created by Administrator on 2014/11/11.
 */
public class Car4SModeFragmentViewPagerAdapter extends FragmentStatePagerAdapter{

    List<Picdata> image_url_data;
    ImageLoader image_loader;


    public Car4SModeFragmentViewPagerAdapter(FragmentManager fm, List<Picdata>  data) {

        super(fm);
        this.image_url_data = data;
     //   this.image_url = url;
    }

    public Car4SModeFragmentViewPagerAdapter(FragmentManager fm) {

        super(fm);

        //   this.image_url = url;
    }

    @Override
    public Fragment getItem(int position) {
        return Cars4smodeFragmetImage0.newInstance(position, image_url_data);
    }

    @Override
    public int getCount() {
        return image_url_data.size();
    }

    @Override
    public int getItemPosition(Object object) {
        return PagerAdapter.POSITION_NONE;
    }
}
